# -*- coding: utf-8 -*-
from flask import Blueprint
filter=Blueprint('filter_app',__name__)

#转换成字符串
@filter.app_template_filter("any_to_str")
def any_to_str(args):
    if args:
        return str(args)

#转换成整数型
@filter.app_template_filter("any_to_int")
def any_to_int(args):
    if args:
        return str(args)
